package com.agh.portal.web.security;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.hibernate.validator.constraints.Email;
import org.springframework.roo.addon.javabean.RooJavaBean;

@RooJavaBean
public class SignUpForm {

	@NotNull
	@Size(min = 1, max = 30)
	private String name;

	@NotNull
	@Size(min = 1, max = 30)
	private String surname;

	@NotNull
	@Size(min = 1, max = 100)
	@Email
	private String emailAddress;

	@NotNull
	@Size(min = 5, max = 100)
	private String password;

	private String retypePassword;

	public SignUpForm() {}
	
}
